package com.fmy.springbootsecurity.modular.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * @author Mr.fmy
 * @version 1.0.0
 * @ClassName TestService
 * @Description TODO
 * @createTime 2019/9/6 17:11
 */
@Service
@Slf4j
public class TestService {

    @Cacheable(value = "user_token", key = "'test'")
    public String cache() {
        log.info("进入程序");
        return "hello";
    }
}
